/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package SourceCode;

import java.io.Serializable;

/**
 *
 * @author ssaad
 */
public class Book extends Item implements Serializable
{
    private String ISBN;
    private String Author;

    public Book(String title, int Checkoutlength, String ISBN, String Author) {
        super(title, Checkoutlength);
        this.ISBN = ISBN;
        this.Author = Author;
    }


    public String getAuthor() {
        return Author;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setAuthor(String Author) {
        this.Author = Author;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    @Override
    public String tostring()
    {
        return this.ISBN + " " +  super.getTitle() + " " + super.getCheckoutlength() + " " + this.Author;
    }

}
